import service from '@/utils/request'
// @Tags CROSSBorderCase
// @Summary 创建跨境案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CROSSBorderCase true "创建跨境案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /CBC/createCROSSBorderCase [post]
export const createCROSSBorderCase = (data) => {
  return service({
    url: '/CBC/createCROSSBorderCase',
    method: 'post',
    data
  })
}

// @Tags CROSSBorderCase
// @Summary 删除跨境案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CROSSBorderCase true "删除跨境案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CBC/deleteCROSSBorderCase [delete]
export const deleteCROSSBorderCase = (params) => {
  return service({
    url: '/CBC/deleteCROSSBorderCase',
    method: 'delete',
    params
  })
}

// @Tags CROSSBorderCase
// @Summary 批量删除跨境案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除跨境案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CBC/deleteCROSSBorderCase [delete]
export const deleteCROSSBorderCaseByIds = (params) => {
  return service({
    url: '/CBC/deleteCROSSBorderCaseByIds',
    method: 'delete',
    params
  })
}

// @Tags CROSSBorderCase
// @Summary 更新跨境案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CROSSBorderCase true "更新跨境案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /CBC/updateCROSSBorderCase [put]
export const updateCROSSBorderCase = (data) => {
  return service({
    url: '/CBC/updateCROSSBorderCase',
    method: 'put',
    data
  })
}

// @Tags CROSSBorderCase
// @Summary 用id查询跨境案
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.CROSSBorderCase true "用id查询跨境案"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /CBC/findCROSSBorderCase [get]
export const findCROSSBorderCase = (params) => {
  return service({
    url: '/CBC/findCROSSBorderCase',
    method: 'get',
    params
  })
}

// @Tags CROSSBorderCase
// @Summary 分页获取跨境案列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取跨境案列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /CBC/getCROSSBorderCaseList [get]
export const getCROSSBorderCaseList = (params) => {
  return service({
    url: '/CBC/getCROSSBorderCaseList',
    method: 'get',
    params
  })
}

// @Tags CROSSBorderCase
// @Summary 不需要鉴权的跨境案接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.CROSSBorderCaseSearch true "分页获取跨境案列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /CBC/getCROSSBorderCasePublic [get]
export const getCROSSBorderCasePublic = () => {
  return service({
    url: '/CBC/getCROSSBorderCasePublic',
    method: 'get',
  })
}
